package com.mystudy.concurrent.designModel.observerModel;

/**
 * TODO: 订阅者
 *
 * @author acy
 * @since 2019/05/27 20:43
 */
public abstract class Observer {
	protected Subject subject;

	public Observer(Subject subject) {
		this.subject = subject;
		subject.addObserver(this);
	}

	abstract void doUpdate();
}
